package wechat.service;

import wechat.entity.AccessTokenEntity;
import wechat.resources.InstanceResource;

public interface AccessTokenService {

	/**
	 * 获得AccessToken
	 * @param appid
	 * @return
	 * @throws Exception
	 */
	public AccessTokenEntity getAccessToken(String appid) throws Exception;
	
	/**
	 * 获得AccessToken
	 * @param instanceResource
	 * @return
	 * @throws Exception
	 */
	public AccessTokenEntity getAccessToken(InstanceResource instanceResource) throws Exception;
	
	/**
	 * 重置AccessToken
	 * @param appid
	 * @return
	 * @throws Exception
	 */
	public void resetAccessToken(String appid) throws Exception;

}
